﻿<?php
	if (!isset($_SESSION["taikhoan"]))
	{
		header("Location: cnk-dangnhap.php");
	}
	
    include "connect.php"; 
    $q = $_GET["q"];
	$sql=mysql_query("select distinct(ma_gv) from `lop hoc phan` where ma_hp='$q'");
	if(mysql_num_rows($sql) > 0)
	{
		echo '<select name="magv" id="magv">
            <option value="">Chọn Giảng Viên </option>';
		while($row = mysql_fetch_row($sql))
		{
			echo '<option >'.$row[0].'</option>';
        }
			echo '</select>';
	} 
?>
